issue: Bevy: Components の重複
status.icon 解決済
それぞれにアクセスするにはどうすればいい?
ex: Bevyで2048でTileはSpriteBundle.transformとText2dBundle.transformを持ってる Query<Transform>類でアクセスすると両方操作されちゃう?
cause.icon
そもそもやっちゃいけない
Importantly, bundles are only their constituent set of components. You should not use bundles as a unit of behavior. The behavior of your app can only be considered in terms of components, as systems, which drive the behavior of a bevy application, operate on combinations of components.
This rule is also important because multiple bundles may contain the same component type, calculated in different ways — adding both of these bundles to one entity would create incoherent behavior. This would be unexpected if bundles were treated as an abstraction boundary, as the abstraction would be unmaintainable for these cases. For example, both Camera3dBundle and Camera2dBundle contain the CameraRenderGraph component, but specifying different render graphs to use. If the bundles were both added to the same entity, only one of these two bundles would work.
solution.icon
If the entity has a parent, the Transform component is relative to the parent. This means that the child object will move/rotate/scale along with the parent.